toList

fun toList(): List<E>

Returns all elements of this list as a List of type E.